<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Docs For Class Zend_View_Helper_FormSelect</title>
			<link rel="stylesheet" href="../../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
		</head>
		<body>
			<div class="page-body">			
<h2 class="class-name">Class Zend_View_Helper_FormSelect</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
							<a href="#sec-descendents">Descendents</a>
			|													<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
					</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Helper to generate &quot;select&quot; list of options</p>
	<ul class="tags">
				<li><span class="field">copyright:</span> Copyright (c) 2005-2007 Zend Technologies USA Inc. (http://www.zend.com)</li>
				<li><span class="field">license:</span> <a href="http://framework.zend.com/license/new-bsd">New BSD License</a></li>
			</ul>
		<p class="notes">
			Located in <a class="field" href="_mvc---view---helper---zend---FormSelect.php.html">/mvc/view/helper/zend/FormSelect.php</a> (line <span class="field">38</span>)
		</p>
		
				
		<pre><a href="../../Zend_View/Helper/Zend_View_Helper_FormElement.html">Zend_View_Helper_FormElement</a>
   |
   --Zend_View_Helper_FormSelect</pre>
	
			</div>
</div>

	<a name="sec-descendents"></a>
	<div class="info-box">
		<div class="info-box-title">Direct descendents</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
			<span class="disabled">Descendents</span>
			|															<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
								</div>
		<div class="info-box-body">
			<table cellpadding="2" cellspacing="0" class="class-table">
				<tr>
					<th class="class-table-header">Class</th>
					<th class="class-table-header">Description</th>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="../../mvc/PHP_MVC_View_Form_Helper_FormAges.html">PHP_MVC_View_Form_Helper_FormAges</a></td>
					<td>
											PHP_MVC_View_Form_Helper_FormAges class
										</td>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="../../mvc/PHP_MVC_View_Form_Helper_FormBirthYears.html">PHP_MVC_View_Form_Helper_FormBirthYears</a></td>
					<td>
											PHP_MVC_View_Form_Helper_FormBirthYears class
										</td>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="../../mvc/PHP_MVC_View_Form_Helper_FormDays.html">PHP_MVC_View_Form_Helper_FormDays</a></td>
					<td>
											PHP_MVC_View_Form_Helper_FormDays class
										</td>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="../../mvc/PHP_MVC_View_Form_Helper_FormHours.html">PHP_MVC_View_Form_Helper_FormHours</a></td>
					<td>
											PHP_MVC_View_Form_Helper_FormHours class
										</td>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="../../mvc/PHP_MVC_View_Form_Helper_FormMinutes.html">PHP_MVC_View_Form_Helper_FormMinutes</a></td>
					<td>
											PHP_MVC_View_Form_Helper_FormMinutes class
										</td>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="../../mvc/PHP_MVC_View_Form_Helper_FormMonths.html">PHP_MVC_View_Form_Helper_FormMonths</a></td>
					<td>
											PHP_MVC_View_Form_Helper_FormMonths class
										</td>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="../../mvc/PHP_MVC_View_Form_Helper_FormWeeks.html">PHP_MVC_View_Form_Helper_FormWeeks</a></td>
					<td>
											PHP_MVC_View_Form_Helper_FormWeeks class
										</td>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="../../mvc/PHP_MVC_View_Form_Helper_FormYears.html">PHP_MVC_View_Form_Helper_FormYears</a></td>
					<td>
											PHP_MVC_View_Form_Helper_FormYears class
										</td>
				</tr>
							</table>
		</div>
	</div>



	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
							<a href="#sec-descendents">Descendents</a> |
												<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
																				
												<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#formSelect" title="details" class="method-name">formSelect</a>
											(<span class="var-type">string|array</span>&nbsp;<span class="var-name">$name</span>, [<span class="var-type">mixed</span>&nbsp;<span class="var-name">$value</span> = <span class="var-default">null</span>], [<span class="var-type">array|string</span>&nbsp;<span class="var-name">$attribs</span> = <span class="var-default">null</span>], [<span class="var-type">array</span>&nbsp;<span class="var-name">$options</span> = <span class="var-default">null</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$listsep</span> = <span class="var-default">&quot;&lt;br /&gt;\n&quot;</span>])
									</div>
																<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#_build" title="details" class="method-name">_build</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$value</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$label</span>, <span class="var-type">array</span>&nbsp;<span class="var-name">$selected</span>)
									</div>
								</div>
		</div>
	</div>		

	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
							<a href="#sec-descendents">Descendents</a> |
																<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>

<a name="methodformSelect" id="formSelect"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">formSelect</span> (line <span class="line-number">63</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Generates 'select' list of options.</p>
	<ul class="tags">
				<li><span class="field">return:</span> The select tag and options XHTML.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			formSelect
		</span>
					(<span class="var-type">string|array</span>&nbsp;<span class="var-name">$name</span>, [<span class="var-type">mixed</span>&nbsp;<span class="var-name">$value</span> = <span class="var-default">null</span>], [<span class="var-type">array|string</span>&nbsp;<span class="var-name">$attribs</span> = <span class="var-default">null</span>], [<span class="var-type">array</span>&nbsp;<span class="var-name">$options</span> = <span class="var-default">null</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$listsep</span> = <span class="var-default">&quot;&lt;br /&gt;\n&quot;</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string|array</span>
				<span class="var-name">$name</span><span class="var-description">: If a string, the element name.  If an  array, all other parameters are ignored, and the array elements  are extracted in place of added parameters.</span>			</li>
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$value</span><span class="var-description">: The option value to mark as 'selected'; if an  array, will mark all values in the array as 'selected' (used for  multiple-select elements).</span>			</li>
					<li>
				<span class="var-type">array|string</span>
				<span class="var-name">$attribs</span><span class="var-description">: Attributes added to the 'select' tag.</span>			</li>
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$options</span><span class="var-description">: An array of key-value pairs where the array  key is the radio value, and the array value is the radio text.</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$listsep</span><span class="var-description">: When disabled, use this list separator string  between list values.</span>			</li>
				</ul>
		
			
	</div>
<a name="method_build" id="_build"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">_build</span> (line <span class="line-number">147</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Builds the actual &lt;option&gt; tag</p>
	<ul class="tags">
				<li><span class="field">return:</span> Option Tag XHTML</li>
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			_build
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$value</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$label</span>, <span class="var-type">array</span>&nbsp;<span class="var-name">$selected</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$value</span><span class="var-description">: Options Value</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$label</span><span class="var-description">: Options Label</span>			</li>
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$selected</span><span class="var-description">: The option value(s) to mark as 'selected'</span>			</li>
				</ul>
		
			
	</div>
							<h4>Inherited Methods</h4>
				<a name='inherited_methods'><!-- --></a>	
									<!-- =========== Summary =========== -->
					<p>Inherited From <span class="classname"><a href="../../Zend_View/Helper/Zend_View_Helper_FormElement.html">Zend_View_Helper_FormElement</a></span></p>
					<blockquote>
													<span class="method-name"><a href="../../Zend_View/Helper/Zend_View_Helper_FormElement.html#method_getInfo">Zend_View_Helper_FormElement::_getInfo()</a></span><br>
													<span class="method-name"><a href="../../Zend_View/Helper/Zend_View_Helper_FormElement.html#method_hidden">Zend_View_Helper_FormElement::_hidden()</a></span><br>
													<span class="method-name"><a href="../../Zend_View/Helper/Zend_View_Helper_FormElement.html#method_htmlAttribs">Zend_View_Helper_FormElement::_htmlAttribs()</a></span><br>
											</blockquote>
										
		</div>
	</div>


	<p class="notes" id="credit">
		Documentation generated on Sun, 10 Feb 2008 15:16:16 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.0</a>
	</p>
	</div></body>
</html>